-- GENERATED SPELL FOR [Shadowy Construct] --


function spell0_23111(pUnit, Event) --@Atrophy,n/a--
pUnit:FullCastSpellOnTarget(40327,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_23111', 617, 1)
end

function Sorts_23111(pUnit, Event)
local choix_sorts_23111 = math.random(0, 0)
if choix_sorts_23111 == 0 then
pUnit:RegisterEvent('spell0_23111', 1, 1)
end
end

function mob23111_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_23111', math.random(1500, 3000), 1)
end

function mob23111_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23111_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob23111_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(23111, 1, 'mob23111_Action')
RegisterUnitEvent(23111, 2, 'mob23111_Leave')
RegisterUnitEvent(23111, 3, 'mob23111_Kill')
RegisterUnitEvent(23111, 4, 'mob23111_Die')
